<head>
  <meta name="layout" content="main" />
  <title>Cadastrar Permiss&otilde;es</title>
  <g:javascript library="jquery"/>
</head>

<body>
<g:ifAnyGranted role="ROLE_ADMIN">
  <div class="body">

    <h1>Cadastrar Permiss&otilde;es</h1>
    <g:if test="${flash.message}">
      <div class="space-me"><!-- spacer layout --></div>
      <div class="message">${flash.message}</div>
    </g:if>
    <g:hasErrors bean="${authority}">
      <div class="space-me"><!-- spacer layout --></div>
      <div class="errors">
        <g:renderErrors bean="${authority}" as="list" />
      </div>
    </g:hasErrors>
    <div class="space-me"><!-- spacer layout --></div>
    <g:form action="save">
     
          <div class="row">
        <div class="col_5">
          <label for="authority">Nome do Grupo:</label>
          <input type="text" id="authority" name="authority"
                 class="textfield full-me value ${hasErrors(bean:authority,field:'authority','errors')}"
                 value="${authority?.authority?.encodeAsHTML()}"/>
        </div>
            </div>
      <div class="row">
        <div class="col_5">
          <label for="description">Descri&ccedil;&atilde;o:</label>
          <input type="text" id="description" name="description"
                 class="textfield full-me value ${hasErrors(bean:authority,field:'description','errors')}"
                 value="${authority?.description?.encodeAsHTML()}"/>
        </div>
</div>

       
        <div class="row">
          
          <div class="col_5">
            <input  class="cmd green save" type="submit" value="Salvar" />
          </div>
        </div>



    </g:form>
  </div>
  </g:ifAnyGranted>
</body>
